From: Jonas Dreßler Date: Wed, 8 Apr 2020 14:23:11 +0000 (+0200) Subject: Use pid_t for meta_window_get_pid() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~364 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b88ed3f251d2922f25c1184f03e346ba01612c64;p=gnome-shell.git Use pid_t for meta_window_get_pid() The return value of meta_window_get_pid() changed again and it now returns pid_t, which usually just resolves to int on most platforms. We should still use pid_t now though, so do that. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1188 --- diff --git a/src/shell-app.c b/src/shell-app.c index e0f5631c6..f70bb7d3e 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -1158,7 +1158,7 @@ shell_app_get_pids (ShellApp *app) for (iter = shell_app_get_windows (app); iter; iter = iter->next) { MetaWindow *window = iter->data; - int pid = meta_window_get_pid (window); + pid_t pid = meta_window_get_pid (window); if (pid < 1) continue; diff --git a/src/shell-window-tracker.c b/src/shell-window-tracker.c index 99ed8270c..0474f0014 100644 --- a/src/shell-window-tracker.c +++ b/src/shell-window-tracker.c @@ -336,7 +336,7 @@ get_app_from_window_pid (ShellWindowTracker *tracker, MetaWindow *window) { ShellApp *result; - int pid; + pid_t pid; if (meta_window_is_remote (window)) return NULL;